package cn.lzx.org.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * Entity 店铺
 */

public class Shop {
    //店铺id
    private Long id;
    //店铺名称
    private String name;
    //店铺电话
    private String tel;
    //店铺入驻时间
    private Date registerTime = new Date();
    //店铺状态
    private Integer state=0;
    //店铺地址
    private String address;
    //店铺图标
    private String logo;
    //店铺管理员id
    private  Long damin_id;
    //店铺管理员也是一个员工 关联字段
    private Employee admin;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public Long getDamin_id() {
        return damin_id;
    }

    public void setDamin_id(Long damin_id) {
        this.damin_id = damin_id;
    }

    public Employee getAdmin() {
        return admin;
    }

    public void setAdmin(Employee admin) {
        this.admin = admin;
    }

    @Override
    public String toString() {
        return "Shop{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", tel='" + tel + '\'' +
                ", registerTime=" + registerTime +
                ", state=" + state +
                ", address='" + address + '\'' +
                ", logo='" + logo + '\'' +
                ", damin_id=" + damin_id +
                ", admin=" + admin +
                '}';
    }
}
